package org.shj.basic

import java.io.IOException
import java.io.FileNotFoundException
import java.io.FileReader

object ExceptionDemo {
  def main(args: Array[String]): Unit = {
    try{
      var f = new FileReader("test.txt")
    }catch{
      case ex: FileNotFoundException => println("File Not found")
      case ex: IOException => println("IO Exception")
    }finally{
      println("finally")
    }
  }
}